﻿using System;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.ComponentModel.Design;
using AjaxControlToolkit;

[assembly: System.Web.UI.WebResource("OpenPhotoAlbum.Controls.TooltipBehavior.js", "text/javascript")]

namespace OpenPhotoAlbum.Controls
{
    [ClientScriptResource("OpenPhotoAlbum.Controls.TooltipBehavior", "OpenPhotoAlbum.Controls.TooltipBehavior.js")]
    [TargetControlType(typeof(WebControl))]
    public class TooltipExtender : ExtenderControlBase
    {
        public TooltipExtender()
            : base()
        {
            Position = TooltipPosition.Bottom;
        }

        [ExtenderControlProperty]
        public string Text { get; set; }

        [ExtenderControlProperty]
        public TooltipPosition Position { get; set; }

		[ExtenderControlProperty]
		public string ParentElementId { get; set; }
    }

    public enum TooltipPosition { Top, Right, Bottom, Left }
}